package com.xzcf.util;
/*
 * Avoid the messy code,so we should turn ISO-8859-1 to utf-8
 */
import java.io.UnsupportedEncodingException;
public class UpdateCode {
	public static String toChinese(String str){
		if(str==null)
			str = "";
		try{
			str = new String(str.getBytes("ISO-8859-1"),"UTF-8");
		}catch(UnsupportedEncodingException e){
			str = "";
			e.printStackTrace();
		}
		return str;
	}
}
